<template>
	<div>
    <div class="detail-top-tab pc-bk" >
      <navblock></navblock>
    </div>
		<div class="wd-content">
			<div class="header-body" style="width: auto;">
        <div class="contactus-logo mobile-top" @click="GoToindex">
          <img src="../../img/mobile/logo1.png" alt="">
        </div>
			</div>
			<div class="contactus">
				国际金融论坛（IFF) 秘书处： <br>
				北京总部紫云台书院 海淀区<br>
				邮编：100095<br>
				电话：8610-85351188<br>
				电子邮件：info@ifforum.org<br>
			</div>
		</div>
    <div class="footer-operation mobile-top">
      <span class="left-back" @click="backClick">
        <img src="../../img/mobile/back.png" alt="">
      </span>
    </div>
	</div>
</template>
<script type="text/javascript">
  import api from '../../utils/api'
  import apiConfig from '../../utils/apiconfig.js'
  import helper from '../../utils/helper'
  import { Indicator } from 'mint-ui'
  import navblock from './components/nav'
  export default {
    data () {
      return {
        tablist: [],
        showsearchlist: false
      }
    },
    created () {
      var mydata = sessionStorage.checktab
      console.log(mydata)
      this.getTablist(mydata)
    },
    components: {
      navblock
    },
    methods: {
      GoToindex () {
        this.$router.push('/')
        sessionStorage.removeItem('checktab')
      },
      backClick () {
        this.$router.go(-1)
      },
      getTablist (ele) {
        var tmp = Date.parse(new Date())
        tmp = tmp / 1000
        console.log(tmp)
        var param = {
          timestamp: tmp
        }
        this.params = param
        api.GET(helper.getClientApiUrl(apiConfig.web.getTab), this.params, res => {
          this.tablist = res
          this.tablistprop = res
          if (ele !== undefined) {
            this.checktab = parseInt(ele)
          } else {
            this.checktab = this.tablist.length - 1
          }
          this.loading = false
        }, res => {
          console.log(res)
          Indicator.close()
        })
      }
    }
  }
</script>
<style type="text/css">
	.contactus{
		font-size: 15px;
	    margin: 5px 15px 15px 15px;
	    padding: 10px;
	    line-height: 1.6;
	    border: 1px solid #d9d9d9;
	    padding-bottom: 45px;
	}
	.contactus-logo{
		float: none;
	}
</style>
